/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javafx179labs.nez.hr.bean;

/**
 *
 * @author civil
 */
public class Employe extends ObjHashId implements ObjHasName {
    private String firstName;
    private String lastName;
    private Integer departmentId;
    private Integer postId;

    public Employe () {

    }

    public Employe (Integer id, String firstName, String lastName,
            Integer departmentId, Integer postId) {

        this.id = id;
        this.firstName = firstName;
        this.lastName = lastName;
        this.departmentId = departmentId;
        this.postId = postId;
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    @Override
    public String getName() {
        return lastName + " " + firstName;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public void setPostId (Integer newId) {
        postId = newId;
    }

}
